package com.naizhuai.ui.entity.mainbusiness;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.List;

/**
 * 提交合成的圖片信息以及数据的相关类
 * Created by code_han on 2018/4/12.
 */

public class ActionSubmitScanDetailsBean implements Serializable {

    public static final String QUESTION_ID_KEY = "questionId";
    public static final String CHANGE_IMAGE_KEY = "changeImages";
    public static final String CHANGE_DATA_KEY = "changeData";
    public static final String REVIEW_KEY = "review";
    public static final String THANK_DATA_KEY = "tank_data";

    private String questionId;
    private List<CompareImageBean> changeImages;
    private List<ActionCompareDataBean> changeData;
    private String review;
    private ThankData thanksData;

    public ThankData getThanksData() {
        return thanksData;
    }

    public void setThanksData(ThankData thanksData) {
        this.thanksData = thanksData;
    }

    public ActionSubmitScanDetailsBean() {
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getChangeImages() {
        return new Gson().toJson(changeImages);
    }

    public void setChangeImages(List<CompareImageBean> changeImages) {
        this.changeImages = changeImages;
    }

    public String getChangeData() {
        return new Gson().toJson(changeData);
    }

    public void setChangeData(List<ActionCompareDataBean> changeData) {
        this.changeData = changeData;
    }

    public String getReview() {
        return review;
    }

    public void setReview(String review) {
        this.review = review;
    }

    public String getThankData() {
        return new Gson().toJson(thanksData);
    }

    public void setThankData(ThankData thanksData) {
        this.thanksData = thanksData;
    }

    public static class ThankData implements Serializable{

        private String thanksUid;
        private String style;
        private String content;

        public ThankData() {
        }

        public String getThanksUid() {
            return thanksUid;
        }

        public void setThanksUid(String thanksUid) {
            this.thanksUid = thanksUid;
        }

        public String getStyle() {
            return style;
        }

        public void setStyle(String style) {
            this.style = style;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }

    @Override
    public String toString() {
        return QUESTION_ID_KEY + ":" + getQuestionId() + ";" + CHANGE_IMAGE_KEY
                + ":" + getChangeImages() + ";" + CHANGE_DATA_KEY + ":" + getChangeData()
                + ";" + REVIEW_KEY + ":" + getReview();
    }
}
